import VueRouter from 'vue-router'

// 导入对应的路由组件
import HomeContainer from '../src/components/tabber/HomeContainer.vue'
import MemberContainer from '../src/components/tabber/MemberContainer.vue'
import ShopCarContainer from '../src/components/tabber/ShopCarContainer.vue'
import SearchContainer from '../src/components/tabber/SearchContainer.vue'


// 3. 创建路由对象
var router = new VueRouter({
  routes: [ // 配置路由规则
  	{ path:'/', redirect:'/home' },
  	{ path:'/home', component: HomeContainer },
  	{ path:'/member', component: MemberContainer },
  	{ path:'/shopcar', component: ShopCarContainer },
  	{ path:'/search', component: SearchContainer },
  ],
  linkActiveClass: 'mui-active'
})

// 把路由对象暴露出去
export default router